window.onload=function(){
    //获取显示隐藏按钮DOM数组
    let showBtnArr=document.getElementsByClassName('fa-caret-down');
    //获取订单明细DOM数组
    let detailedBoxArr=document.getElementsByClassName('order-detailed');
    for(let i=0;i<detailedBoxArr.length;i++){
        detailedBoxArr[i].style.display='none';
    }
    for(let i=0;i<showBtnArr.length;i++){
        showBtnArr[i].onclick=function () {
            detailedBoxArr[i].style.display = detailedBoxArr[i].style.display == 'none' ? 'block' : 'none';
        }
    }
}